package org.brisling.medical.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.brisling.base.domain.impl.BaseMonitorDomain;
import org.brisling.base.domain.inf.BaseDomainInf;
import org.brisling.common.ConstSysParam;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 住院基本处方统计信息表
 * <p>Title: BaseInpatient</p>
 * <p>Description: </p>
 * <p>Company: tongking </p>
 * @author jackson wang
 * @since  1.0
 * @version 1.0
 * @date 2016年5月25日 下午5:23:20
 */

@Entity
@Table(name=ConstSysParam.MODULE_BASE_INPATIENT)
public class BaseInpatient extends BaseMonitorDomain implements BaseDomainInf{

	@Id
	@Column
	@GeneratedValue(strategy=GenerationType.TABLE,generator="baseInpatientGenerator")
	@TableGenerator(name="baseInpatientGenerator",
					table="sysman_generation_key",
					pkColumnValue=ConstSysParam.MODULE_BASE_INPATIENT,
					pkColumnName="primary_key",
					valueColumnName="key_value",
					allocationSize=1)
	private Long id;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	private Double patient_id;

	private String inpatient_no;

	private Double doct_depart_code;

	private String doct_depart_name;

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date inhzospitalat;

	private String inpatient_type;

	private String is_comment;

	private String is_death;

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date outhospitalat;

	@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
	private Date patient_birth;

	private String patient_name;

	private String patient_no;

	private Double patient_sex;

	private String prescribeat;

	private String zyhm;

	private Double drug_price;

	private Double total_anti_price;

	private Double total_base_price;

	private Double oxygen_days;

	private Double grave_hours;

	private Double nursing_days;

	private Double bed_days;

	private Double examine_days;

	private Double total_price;

	private Double Hospital_day;

	private Double ddd;
	
	private String accounting_deptname;
	
	private Long parentid;
	
	public Double getPatient_id() {
		return patient_id;
	}

	public void setPatient_id(Double patient_id) {
		this.patient_id = patient_id;
	}

	public String getInpatient_no() {
		return inpatient_no;
	}

	public void setInpatient_no(String inpatient_no) {
		this.inpatient_no = inpatient_no;
	}

	public Double getDoct_depart_code() {
		return doct_depart_code;
	}

	public void setDoct_depart_code(Double doct_depart_code) {
		this.doct_depart_code = doct_depart_code;
	}

	public String getDoct_depart_name() {
		return doct_depart_name;
	}

	public void setDoct_depart_name(String doct_depart_name) {
		this.doct_depart_name = doct_depart_name;
	}

	public Date getInhzospitalat() {
		return inhzospitalat;
	}

	public void setInhzospitalat(Date inhzospitalat) {
		this.inhzospitalat = inhzospitalat;
	}

	public String getInpatient_type() {
		return inpatient_type;
	}

	public void setInpatient_type(String inpatient_type) {
		this.inpatient_type = inpatient_type;
	}

	public String getIs_comment() {
		return is_comment;
	}

	public void setIs_comment(String is_comment) {
		this.is_comment = is_comment;
	}

	public String getIs_death() {
		return is_death;
	}

	public void setIs_death(String is_death) {
		this.is_death = is_death;
	}

	public Date getOuthospitalat() {
		return outhospitalat;
	}

	public void setOuthospitalat(Date outhospitalat) {
		this.outhospitalat = outhospitalat;
	}

	public Date getPatient_birth() {
		return patient_birth;
	}

	public void setPatient_birth(Date patient_birth) {
		this.patient_birth = patient_birth;
	}

	public String getPatient_name() {
		return patient_name;
	}

	public void setPatient_name(String patient_name) {
		this.patient_name = patient_name;
	}

	public String getPatient_no() {
		return patient_no;
	}

	public void setPatient_no(String patient_no) {
		this.patient_no = patient_no;
	}

	public Double getPatient_sex() {
		return patient_sex;
	}

	public void setPatient_sex(Double patient_sex) {
		this.patient_sex = patient_sex;
	}

	public String getPrescribeat() {
		return prescribeat;
	}

	public void setPrescribeat(String prescribeat) {
		this.prescribeat = prescribeat;
	}

	public String getZyhm() {
		return zyhm;
	}

	public void setZyhm(String zyhm) {
		this.zyhm = zyhm;
	}

	public Double getDrug_price() {
		return drug_price;
	}

	public void setDrug_price(Double drug_price) {
		this.drug_price = drug_price;
	}

	public Double getTotal_anti_price() {
		return total_anti_price;
	}

	public void setTotal_anti_price(Double total_anti_price) {
		this.total_anti_price = total_anti_price;
	}

	public Double getTotal_base_price() {
		return total_base_price;
	}

	public void setTotal_base_price(Double total_base_price) {
		this.total_base_price = total_base_price;
	}

	public Double getOxygen_days() {
		return oxygen_days;
	}

	public void setOxygen_days(Double oxygen_days) {
		this.oxygen_days = oxygen_days;
	}

	public Double getGrave_hours() {
		return grave_hours;
	}

	public void setGrave_hours(Double grave_hours) {
		this.grave_hours = grave_hours;
	}

	public Double getNursing_days() {
		return nursing_days;
	}

	public void setNursing_days(Double nursing_days) {
		this.nursing_days = nursing_days;
	}

	public Double getBed_days() {
		return bed_days;
	}

	public void setBed_days(Double bed_days) {
		this.bed_days = bed_days;
	}

	public Double getExamine_days() {
		return examine_days;
	}

	public void setExamine_days(Double examine_days) {
		this.examine_days = examine_days;
	}

	public Double getTotal_price() {
		return total_price;
	}

	public void setTotal_price(Double total_price) {
		this.total_price = total_price;
	}

	public Double getHospital_day() {
		return Hospital_day;
	}

	public void setHospital_day(Double hospital_day) {
		Hospital_day = hospital_day;
	}

	public Double getDdd() {
		return ddd;
	}

	public void setDdd(Double ddd) {
		this.ddd = ddd;
	}

	public String getAccounting_deptname() {
		return accounting_deptname;
	}

	public void setAccounting_deptname(String accounting_deptname) {
		this.accounting_deptname = accounting_deptname;
	}

	public Long getParentid() {
		return parentid;
	}

	public void setParentid(Long parentid) {
		this.parentid = parentid;
	}

}
